import Vue from 'vue'
import VueRouter from 'vue-router'

import DefaultMap from '../views/leafletMap/default-map/default-map.vue'
import BaseMap from '../views/leafletMap/leaflet-map/BaseMap.vue'
import LayerControlMap from '../views/leafletMap/layer-control-map/LayerControlMap.vue'
import CQSimPopMap from '../views/leafletMap/cqsim-pop-map/CQSimPopMap.vue'
import OriConMap from '../views/leafletMap/origin-control-map/OriConMap.vue'
import WmsLayerMap from '../views/leafletMap/wms-layer-map/WmsLayerMap.vue'
import ImageMap from '../views/leafletMap/overlay-map/ImageMap.vue'
import MovIcon from '../views/leafletMap/moving-icon/movIcon.vue'
import LoadKml from '../views/leafletMap/load-kml/LoadKml.vue'
import AniIcon from '../views/leafletMap/ani-icon/aniIcon.vue'
import DrawVec from '../views/leafletMap/draw-vec/drawVec.vue'

import swiper from '../views/cssStudy/swiper-com/SwiperBox.vue'

import TestPage from '../views/normalStudy/test-page/TestPage.vue'
import TestPage1 from '../views/normalStudy/test-page/TestPage1.vue'
import TestPage2 from '../views/normalStudy/test-page/TestPage2.vue'
import TestPage3 from '../views/normalStudy/test-page/TestPage3.vue'
import keyFrames from '../views/normalStudy/key-frames/keyFrames.vue'
import GridCalculate from "../views/normalStudy/grid-calculate/gridCalculate.vue"
import CalculateProblems from "../views/normalStudy/calculators/calculate-problems.vue"
import MusicPlayer from "../views/normalStudy/music-player/musicPlayer.vue"
import MusicPlayer2 from "../views/normalStudy/music-player/musicPlayer2.vue"

import EchartTable from "../views/echart-table/echartTable.vue"
import markedUsing  from '../views/normalStudy/marked-using/markedUsing.vue'


import PromiseUsing from "../views/apiStudy/promise-using/promiseUsing.vue"
import ExtendVue from "../views/apiStudy/vue-extend/extendVue.vue"

import aiUi from '@/views/normalStudy/ai-ui/aiUi.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'DefaultMap',
    component: DefaultMap
  },
  {
    path: '/BaseMap',
    name: 'BaseMap',
    component: BaseMap
  },
  {
    path: '/LayerControlMap',
    name: 'LayerControlMap',
    component: LayerControlMap
  },
  {
    path: '/CQSimPopMap',
    name: 'CQSimPopMap',
    component: CQSimPopMap
  },
  {
    path: '/OriConMap',
    name: 'OriConMap',
    component: OriConMap
  },
  {
    path: '/WmsLayerMap',
    name: 'WmsLayerMap',
    component: WmsLayerMap
  },
  {
    path: '/ImageMap',
    name: 'ImageMap',
    component: ImageMap
  },
  {
    path: '/TestPage',
    name: 'TestPage',
    component: TestPage
  },
  {
    path: '/TestPage1',
    name: 'TestPage1',
    component: TestPage1
  },
  {
    path: '/TestPage2',
    name: 'TestPage2',
    component: TestPage2
  },
  {
    path: '/TestPage3',
    name: 'TestPage3',
    component: TestPage3
  },{
    path: '/AniIcon',
    name: 'AniIcon',
    component: AniIcon
  },{
    path: '/MovIcon',
    name: 'MovIcon',
    component: MovIcon
  },{
    path: '/DrawVec',
    name: 'DrawVec',
    component: DrawVec
  },{
    path: '/swiper',
    name: 'swiper',
    component: swiper
  },{
    path: '/LoadKml',
    name: 'LoadKml',
    component: LoadKml
  },{
    path: '/keyFrames',
    name: 'keyFrames',
    component: keyFrames
  },{
    path: '/GridCalculate',
    name: 'GridCalculate',
    component: GridCalculate
  },{
    path: '/EchartTable',
    name: 'EchartTable',
    component: EchartTable
  },{
    path: '/CalculateProblems',
    name: 'CalculateProblems',
    component: CalculateProblems
  },{
    path: '/PromiseUsing',
    name: 'PromiseUsing',
    component: PromiseUsing
  },{
    path: '/ExtendVue',
    name: 'ExtendVue',
    component: ExtendVue
  },{
    path: '/MusicPlayer',
    name: 'MusicPlayer',
    component: MusicPlayer
  },{
    path: '/MusicPlayer2',
    name: 'MusicPlayer2',
    component: MusicPlayer2
  },{
    path: '/markedUsing',
    name: 'markedUsing',
    component: markedUsing
  },{
    path: '/aiUi',
    name: 'aiUi',
    component: aiUi
  },
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
